package others;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/5/20 14:43
 */
public class Solution01 {
    public String convertToTitle(int cn) {
        StringBuilder sb = new StringBuilder();
        while (cn > 0) {
            cn--;
            sb.append((char)(cn % 26 + 'A'));
            cn /= 26;
        }
        sb.reverse();
        return sb.toString();
    }
}